{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>文章类型</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	{include file="news/top"}
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('indextype')}">	
			
			<div class="form-group">
					标题<input type="text" id="title" name="title" value="" placeholder="请输入标题" class="bank" />
					商家名称<input type="text" id="store_name" name="store_name" value="" placeholder="请输入名称" class="bank" />
					时间<input id='start_time' name='start_time'  style="width: 120px;" onclick='WdatePicker()' type='text' placeholder="开始时间" class="bank" />
				       <input id='end_time' name='end_time'  style="width: 120px;" onclick='WdatePicker()' type='text' placeholder="结束时间" class="bank" />				
					<span ><button type="submit" class="btn btn-sm btn-primary"> 查询</button> </span>
			</div>
		</from>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>类型名称</th>
                                <th>图标</th>
                                <th>商家</th>
                                <th>创建时间</th>
                                <th>排序</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.nametype}</td>
                        		<td><img src="{$ad.thumb}"  width="50px"/></td>
                        		<td>{$ad.store_name}</td>
                        		<td>{$ad.addtime}</td>
                        		<td>{$ad.sort}</td>
                        		<td>	
									<a href="{:url('deletetype',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>								
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
    margin-right:10px;
    margin-left:10px;
}
</style>
<script>
		//顶部导航
		$("#li-bar-indextype").addClass("active");
</script>
{/block}